home *** CD-ROM | disk | FTP | other *** search
/ Pesquisa Dirigida / Pesquisa Dirigida.iso / JOGOS / mini_putt2.swf / scripts / DefineButton2_194 / BUTTONCONDACTION on(release, releaseOutside).as
Text File  |  2005-01-07  |  405b  |  25 lines

  1. on(release, releaseOutside){
  2.    if(775 < eval("../:speed"))
  3.    {
  4.       if(_root.killing == "on")
  5.       {
  6.          tellTarget("../..")
  7.          {
  8.             gotoAndStop("kill");
  9.          }
  10.       }
  11.    }
  12.    else
  13.    {
  14.       tellTarget("../../sound")
  15.       {
  16.          gotoAndStop("hit");
  17.       }
  18.       _root.strokes += 1;
  19.       tellTarget("..")
  20.       {
  21.          play();
  22.       }
  23.    }
  24. }
  25.